package CreationModel.SimpleFacotryMode;

/**
 * @author 王蕾 [wanglei_dev@cyou-inc.com]
 * @date 2017-11-23 10:44:00
 */
public class Factory {

    public BMW createBMW(int type){
        switch (type){
            case 320:
                return new BWM320();
            case 523:
                return new BWM532();
            default:
                break;
        }
        return null;
    }
}
